package com.licheedev.serialportpathdialogdemo

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.licheedev.serialpathdialog.SerialPathDialog
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        
        textView.setOnClickListener {
            SerialPathDialog(this).show { path ->
                println(path)
            }
        } 


    }
}